package com.dhsc.controller.wdywgl;

import com.dhsc.domain.ywzx.wdywgl.CsbmdVo;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.wdywgl.ICsbmdService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName: CsbmdController
 * @Description: 测试白名单
 * @date: 2023/12/1 13:21
 * @author: gx
 */
@Controller
@RequestMapping("/wdywgl")
public class CsbmdController {

    @Autowired
    private ICsbmdService csbmdService;

    /**
    * @Title: queryCsbmd
    * @Description: 查询测试白名单
    * @Param: csbmdVo
    * @return: LayuiTableVo
    * @Author: gx
    * @Date: 2023/12/1 13:22
    */
    @ResponseBody
    @RequestMapping(value="/queryCsbmd")
    public LayuiTableVo queryCsbmd(CsbmdVo csbmdVo){
        return csbmdService.queryCsbmd(csbmdVo);
    }

    /**
    * @Title: saveCsbmd
    * @Description: 保存测试白名单
    * @Param: csbmdVo
    * @return: ResponseObject
    * @Author: gx
    * @Date: 2023/12/1 13:22
    */
    @ResponseBody
    @RequestMapping(value="/saveCsbmd")
    public ResponseObject saveCsbmd(CsbmdVo csbmdVo){
        return csbmdService.saveCsbmd(csbmdVo);
    }

    /**
     * @Description: 删除测试白名单
     * @MessageName: deleteCsbmd
     * @param: csbmdVo
     * @return: ResponseObject
     * @Author: jwj
     * @Date: 2023/12/1 13:22
     */
    @ResponseBody
    @RequestMapping(value="/deleteCsbmd")
    public ResponseObject deleteCsbmd(CsbmdVo csbmdVo){
        return csbmdService.deleteCsbmd(csbmdVo);
    }
}
